import request from '@/utils/request'

// 列表
export function mail_records(params) {
  return request({
    url: '/mapi/export_records/mail_records',
    method: 'get',
    params
  })
}

// 宝宝详情
export function childrenDetail(params) {
  return request({
    url: '/mapi/children/detail',
    method: 'post',
    params
  })
}

// 宝宝编辑
export function update_child_info(params) {
  return request({
    url: '/mapi/children/update_child_info',
    method: 'post',
    params
  })
}

// 删除
export function childrenDelete(params) {
  return request({
    url: '/mapi/children/delete',
    method: 'post',
    params
  })
}

// 推送
export function grant_parent(params) {
  return request({
    url: '/mapi/pb_reports/grant_parent',
    method: 'post',
    params
  })
}

// 支付测评
export function pay_record(params) {
  return request({
    url: '/mapi/pb_reports/pay_record',
    method: 'post',
    params
  })
}

// 导出
export function pb_reportsExport(params) {
  return request({
    url: '/mapi/pb_reports/export',
    method: 'get',
    params
  })
}

// 预览
export function preview_url(params) {
  return request({
    url: '/mapi/pb_reports/preview_url',
    method: 'get',
    params
  })
}
